/*
 * @Author: 许旺玉
 * @Description: 系统接口
 * @Date: 2020-06-28 13:11:02
 * @LastEditTime: 2020-06-29 10:55:01
 * @LastEditors: Please set LastEditors

 */ 

import { ajaxGet,ajaxPost } from '@/utlis/request.js'


export function ad(params) {  //广告轮播图
    const url = 'ad'
    return ajaxGet(url, params)
}

export function system(params) {  //维护状态
    const url = 'system'
    return ajaxGet(url, params)
}

export function payment(params) {  //支付方式
    const url = 'payment'
    return ajaxGet(url, params)
}

export function license(params) {  //获取执照照片
    const url = 'payment'
    return ajaxGet(url, params)
}

export function config(params) {  //获取系统配置数据
    const url = 'config'
    return ajaxGet(url, params)
}

export function keywords(params) {  //获取热门关键字
   const url = 'keywords'
   return ajaxGet(url, params)
}

export function region(params) {  //获取地区信息
    const url = 'region'
    return ajaxGet(url, params)
 }

export function wx(data) { //小程序解密接口Copy
    const url = 'wx/decode'
    return ajaxPost(url, data)
}

export function share(params) {  //获取小程序二维码(含用户id)
    const url = 'share/orcode'
    return ajaxGet(url, params)
 }